/*from*/
@media (min-width: 768px) {
    html{
        overflow-x: initial !important;
    }
    .openedPopup{
        margin-right: 17px;
    }
}

body{
    position: relative;
}
.openedPopup{
    overflow: hidden;
}
.franchise-request-popup *{
    font-family: Montserrat, sans-serif;
    font-style: normal;
    font-weight: normal;
    letter-spacing: 0.02em;
}
/*from*/


.franchise-request-popup{
    position: fixed;
    display: none;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 1000;
}
.franchise-request-popup-wrapper{
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    padding: 10px 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
}
.franchise-request{
    width: 470px;
    padding: 64px 50px 50px;
    background: #FFFFFF;
    border-radius: 0;
    position: relative;
    margin: auto;
}
.franchise-request h3{
    font-weight: 700;
    font-size: 30px;
    line-height: 120%;
    color: #0B1F35;
    margin: 0 0 16px 0;
}
.franchise-request form{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin: 24px 0 0;
}
.input-wrapper{
    display: flex;
    position: relative;
}

.input-wrapper .error-wrapper, .custom-select-container .error-wrapper{
    position: absolute;
    font-weight: 400;
    font-size: 12px;
    line-height: 150%;
    color: #EB2525;
    bottom: -17px;
    display: none;
}

.input-wrapper input, .input-wrapper select, .input-wrapper textarea{
    font-weight: 400;
    font-size: 14px;
    line-height: 120%;
    color: #0B1F35;
    padding: 19px 24px;
    background: #FFFFFF;
    border: 1px solid #B1B1B1;
    border-radius: 10px;
    width: 367px;
    height: 48px;
}
.input-wrapper input.errorRequest, input.errorRequest + .custom-select-wrapper{
    border-color: #FF8080 !important;
    outline: 1px solid #FF8080;
}

input.errorRequest ~ .error-wrapper{
    display: block;
}

.input-wrapper input::placeholder, .input-wrapper select::placeholder, .input-wrapper textarea::placeholder{
    color: #6D7986;
}
.input-wrapper input:hover, .input-wrapper select:hover, .input-wrapper textarea:hover{
    background: rgba(211, 213, 218, 0.3);
    border: 1px solid #4A4B56;
}
.input-wrapper textarea{
    height: 168px;
    resize: none;
}
.input-wrapper{
    margin-bottom: 24px;/*48*/
}

/******/
.custom-select-container{
    position: relative;
    height: 48px;
    margin-bottom: 24px;
}
.custom-select-wrapper{
    background: #FFFFFF;
    border: 1px solid #B1B1B1;
    box-sizing: border-box;
    border-radius: 10px;
    padding: 7px 0 0 0;
    position: absolute;
    width: 100%;
    cursor: pointer;
    transition: border-color .3s ease, background-color .1s ease;
}
.custom-select-wrapper.opened{
    outline: 1px solid rgb(16,16,16);
}
.custom-select-wrapper:hover{
    border: 1px solid #4A4B56;
    background: #f2f2f4;
}
.custom-select-label-wrapper{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 12px 7px 24px;
}
.custom-select-label{
    font-size: 14px;
    line-height: 120%;
    color: #6D7986;
    width: 100%;
}
.custom-select-label-wrapper .arrow{
    width: 30px;
    height: 30px;
}
.custom-select-options-wrapper{
    display: none;
    flex-direction: column;
    position: relative;
}
.custom-select-wrapper.opened{
    z-index: 1000;
    background: white;
    border: 1px solid #4A4B56;
}
.custom-select-wrapper.opened .custom-select-options-wrapper{
    display: flex;
    max-height: 288px;
    overflow: auto;
}
.custom-select-wrapper.opened .custom-select-options-wrapper::-webkit-scrollbar {
    width: 8px;
    background-color: transparent;
    position: relative;
    right: 10px;
}

.custom-select-wrapper.opened .custom-select-options-wrapper::-webkit-scrollbar-thumb {
    border-radius: 8px;
    background: #6d7986;
}

.custom-select-wrapper.opened .custom-select-options-wrapper::-webkit-scrollbar-track {
    background-color: transparent;
}
.custom-select-option{
    display: flex;
    font-size: 14px;
    line-height: 120%;
    color: #0B1F35;
    align-items: center;
    cursor: pointer;
    padding: 10px 0 10px 24px;
    position: relative;
}
.custom-select-option:hover{
    background: rgba(211, 213, 218, 0.4);
}
.custom-select-label input{
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    height: 1em;
    border-radius: 0;
    width: 100%;
    color: #0B1F35;
}
.custom-select-label input:focus{
    outline: none;
}
.custom-select-wrapper.disabled{
    background: #f6f6f7;
    border: 1px solid #e9e9ea;
    cursor: not-allowed;
}
.custom-select-wrapper.disabled .arrow{
    opacity: .3;
}
.custom-select-wrapper.disabled .custom-select-label{
    color: #cfcfcf;
}
/******/

.subhead-form{
    font-weight: 400;
    font-size: 14px;
    line-height: 120%;
    color: #0B1F35;
    margin: 0;
}
.form-send-request{
    width: 100%;
    max-width: 360px;
    display: inline-block;
    font-weight: 700;
    font-size: 16px;
    line-height: 120%;
    color: #FFFFFF;
    padding: 16px 99px;
    background: #F50882;
    border-radius: 10px;
    margin: 24px 0;
    margin-top: 0;
    text-decoration: none;
}
.form-send-request.disabled{
    background: #DCDADB !important;
    opacity: 0.7;
    color: #A9A9A9 !important;
    cursor: not-allowed;
}
.form-send-request:hover, .form-send-request:visited, .form-send-request:focus{
    color: white;
    text-decoration: none;
    background: #FF2796;
}
.user-agreement{
    font-weight: 400;
    font-size: 12px;
    line-height: 120%;
    color: #6D7986;
    margin: 0;
}

.franchise-request-popup .user-agreement a {
    font-size: 12px;
}

.franchise-request-popup .close-button img{
    width: 100%;
    filter: grayscale(1);
}
.franchise-request-popup .close-button:hover img{
    filter: grayscale(0);
}
.franchise-request-popup .close-button{
    position: absolute;
    width: 20px;
    height: 20px;
    right: 24px;
    top: 24px;
    cursor: pointer;
}
.franchise-success-request{
    display: none;
    background: white;
    border-radius: 20px;
    padding: 48px;
    text-align: center;
}
.franchise-success-request img{
    width: 108px;
    height: 108px;
    margin-bottom: 35px;
}
.franchise-success-request h4{
    font-weight: 700;
    font-size: 38px;
    line-height: 120%;
    color: #0B1F35;
    margin: 0 0 24px 0;
}
.franchise-success-request p{
    font-weight: 400;
    font-size: 18px;
    line-height: 120%;
    color: #0B1F35;
    margin: 0;
}
.franchise-success-request .form-send-request{
    margin: 80px 0 56px 0;
    width: 100%;
}

@media (max-width: 767px) {
    .franchise-request{
        width: 100%;
        border-radius: 0;
        padding: 64px 20px 48px 20px;
        max-width: 360px;
    }
    .franchise-request-popup-wrapper{
        padding: 0;
        background: white;
    }
    .franchise-request-popup .close-button{
        right: 20px;
        top: 20px;
    }
    .franchise-request h3{
        font-size: 24px;
        line-height: 140%;
    }
    .franchise-request h3{
        margin: 0 0 24px 0;
    }
    .subhead-form{
        font-size: 14px;
        line-height: 140%;
    }
    .franchise-request form{
        margin: 18px 0 0 0;
        flex-direction: column;
    }
    .input-wrapper input, .input-wrapper select, .input-wrapper textarea{
        width: 320px;
        height: 52px;
        font-size: 14px;
        padding: 15px 10px;
    }
    .input-wrapper {
        margin-bottom: 24px;
    }
    .custom-select-container{
        margin-bottom: 24px;
        height: 52px;
    }
    .input-wrapper textarea{
        height: 141px;
    }
    .custom-select-label input{
        font-size: 14px;
    }
    .custom-select-label-wrapper{
        padding: 0 10px 10px 10px;
    }
    .custom-select-wrapper{
        padding: 10px 0 0 0;
    }
    .custom-select-option{
        font-size: 16px;
        padding: 8px 0 8px 15px;
    }
    .form-send-request{
        margin: 8px 0 36px 0;
        padding: 16px 0;
        width: 100%;
        text-align: center;
        font-weight: 500;
    }
    .user-agreement{
        font-size: 12px;
    }
    .input-wrapper .error-wrapper, .custom-select-container .error-wrapper{
        font-size: 10px;
        bottom: -18px;
    }
    .franchise-success-request{
        padding: 116px 20px 50px 20px;
        width: 100%;
        border-radius: 0;
        max-width: 360px;
    }
    .franchise-success-request img{
        margin-bottom: 30px;
    }
    .franchise-success-request h4{
        font-size: 24px;
        line-height: 140%;
        margin-bottom: 12px;
    }
    .franchise-success-request p {
        font-size: 16px;
        line-height: 140%;
    }
    .franchise-success-request .form-send-request{
        margin-top: 66px;
    }
}